<!DOCTYPE html>
<html lang="en" html xmlns:th="http://www.thymeleaf.org">

<head th:replace="Administrator/main/publics :: #public_style">

</head>
<body class="publicbody">
<header class="header1" th:replace="Administrator/main/publics :: #public_header">

</header>

<section class="public_main">

    <!-- <nav> 标签定义导航链接的部分。 -->
    <div class="left"  th:replace="Administrator/main/publics :: #public_left">

    </div>


    <div class="voiceMessageManagementleft">
        <form id="searchForm" th:action="@{/voiceMessage}" th:method="get" action="/voiceMessage" method="get">
            <div class="search">
                <span>发送者名字：</span>
                <input type="text"  th:value="${sendname}" name="sendname" placeholder="请输入发送者名字"/>
                <!--获取表单id，并用submit提交-->
                <input type="button" onclick="$('#searchForm').submit()" value="查询"/>
            </div>
        </form>
        <table class="voiceMessageManagementlefttable" border="1">
            <caption>留言信息管理</caption>
            <tr class="tr1">
                <th>发送者：</th>
                <th>接收者：</th>
                <th>消息内容：</th>
                <th>发送日期：</th>
                <th>操作：</th>
            </tr>
            <tr class="tr2" th:each="voicemessages : ${voicemessage}">
                <td th:text="${voicemessages.getSendname()}">zlj</td>
                <td th:text="${voicemessages.getReceivename()}">111</td>
                <td th:text="${voicemessages.getMessage()}">内容</td>
                <td th:text="${#dates.format(voicemessages.getData(), 'yyyy-MM-dd')}">1999223、。333</td>
                <td> <a th:attr="del_uri=@{/voiceMessage/}+${voicemessages.sendname}" class="delete"><img src="/img/schu.png" alt="删除" title="删除"/></a></td>

            </tr>
        </table>
    </div>
</section>
<!--点击删除按钮后弹出的页面-->
<div class="zhezhao"></div>
<form method="post" id="deleteForm" >
    <input type="hidden" name="_method" value="delete">

    <div class="remove" id="removeProv">
        <div class="removerChid">
            <h2>提示</h2>
            <div class="removeMain" >
                <p>你确定要删除吗？</p>
                <a href="#" id="yes">确定</a>
                <a href="#" id="no">取消</a>
            </div>
        </div>
    </div>

</form>
<!-- <a> 标签的 target 属性规定在何处打开链接文档。
    属性：
_blank	在新窗口中打开被链接文档。
_self	默认。在相同的框架中打开被链接文档。
_parent	在父框架集中打开被链接文档。
_top	在整个窗口中打开被链接文档。
framename	在指定的框架中打开被链接文档。
 -->
<footer class="footer" id="public_footer" th:replace="Administrator/main/publics :: #public_footer">

</footer>
<script th:src="@{/js/jquery.js}" src="../js/jquery.js"></script>

<script th:src="@{/js/js.js}" src="../js/js.js"></script>
</body>
</html>